//
//  ViewController.m
//  Test
//
//  Created by 吕飞俊 on 15/11/24.
//  Copyright © 2015年 Goudu KuaiEx Technology(Shenzhen)Co.,ltd. All rights reserved.
//

#import "ViewController.h"
#import "LvfjKlineGraphView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSDictionary *dic1 = @{@"values":@[@"100000",@"10000",@"110000",@"100009",@"100080"],
                           @"areColor":[UIColor cyanColor], @"lineColor":[UIColor redColor],@"pointColor":[UIColor redColor]};
    NSDictionary *dic2 = @{@"values":@[@"100000",@"100500",@"10800",@"100900",@"100400",@"100070",@"100600",@"10060",@"100500",@"100500"],
                           @"areColor":[UIColor cyanColor], @"lineColor":[UIColor redColor],@"pointColor":[UIColor clearColor]};
    
    LvfjKlineGraphView *graphV = [[LvfjKlineGraphView alloc]initWithFrame:CGRectMake(13, 100+44, [UIScreen mainScreen].bounds.size.width - 24, 200)
                                                        dataArray:@[dic2,dic1]
                                                   dic:@{@"horizontalLineColor":[UIColor lightTextColor],@"maxY":@"150000"}];
    graphV.backgroundColor = [UIColor clearColor];
    [self.view addSubview:graphV];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
